]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
src: remove no-longer-used file
authorDan Winship <danw@gnome.org>
Tue, 5 Oct 2010 16:22:52 +0000 (12:22 -0400)
committerDan Winship <danw@gnome.org>
Tue, 5 Oct 2010 16:24:56 +0000 (12:24 -0400)
fix-meta-rectangle.py is not needed with current gobject-introspection

src/Makefile.am
src/fix-meta-rectangle.py [deleted file]

index 9d60ec7b317ccf1e5b91ff57bbb73d8edb2aef05..e64082437aa3c15a582b9e8b67e41cbb46ce2b8d 100644 (file)
@@ -216,7 +216,6 @@ Shell-0.1.gir: $(mutter) $(G_IR_SCANNER) St-1.0.gir libgnome-shell.la Makefile
                -I $(srcdir)                            \
                -o $@
 CLEANFILES += Shell-0.1.gir
-EXTRA_DIST += fix-meta-rectangle.py
 
 # The dependency on libgnome-shell.la here is because g-ir-compiler opens it
 # (not the fake library, since we've already done the rewriting)
diff --git a/src/fix-meta-rectangle.py b/src/fix-meta-rectangle.py
deleted file mode 100755 (executable)
index 560d892..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/usr/bin/python
-import re
-import sys
-
-# gobject-introspection currently has a bug where an alias like
-# 'typedef GdkRectangle cairo_rect_int_t' is stored un-namespaced,
-# so it is taken to apply to all *Rectangle types. Fixing this
-# requires a significant rework of g-ir-scanner, so for the moment
-# we fix up the output using this script.
-#
-# https://bugzilla.gnome.org/show_bug.cgi?id=622609
-
-GDK_RECTANGLE = re.compile(r'Gdk\.Rectangle')
-META_RECTANGLE = re.compile(r'MetaRectangle')
-
-i = open(sys.argv[1], 'r')
-o = open(sys.argv[2], 'w')
-for line in i:
-    if GDK_RECTANGLE.search(line) and META_RECTANGLE.search(line):
-        line = re.sub('Gdk.Rectangle', 'Meta.Rectangle', line)
-    o.write(line)